package edu.kit.csl.cratyli.control;

import edu.kit.csl.cratyli.datatypes.Dictionary;

/**
 * This sentence target function selects the longest sentence. 
 */
public class LengthSentenceTargetFunction extends SentenceTargetFunction {

	/* (non-Javadoc)
	 * @see SentenceTargetFunction#merge(Dictionary, String[], String[])
	 */
	@Override
	public String merge(Dictionary dict, String[] prim, String[] sec) {
		return arr2str(prim.length >= sec.length ? prim : sec);
	}
}
